package top.kuxiao.crmserver.utils;

import lombok.Data;
import top.kuxiao.crmserver.pojo.Report;

import java.util.List;

@Data
public class ReportResult {
    private List<String> xList;
    private List<Integer> yList;
    private List<Report> pie;

    public static ReportResult ok(List<Report> pie){
        ReportResult reportResult = new ReportResult();
        reportResult.setPie(pie);
        return reportResult;
    }

    public static ReportResult ok(List<String> xList,List<Integer> yList){
        ReportResult reportResult = new ReportResult();
        reportResult.setXList(xList);
        reportResult.setYList(yList);

        return reportResult;
    }
}
